package com.qclix.inv.webui.jsonobj;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class JSonInvoice {

    private String number;
    private Date issueDate;
    private JSonClient client;
    private List<JSonInvoiceLine> lines;
    private JSonContract contract;

    public JSonContract getContract() {
        return contract;
    }

    public void setContract(JSonContract contract) {
        this.contract = contract;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String value) {
        this.number = value;
    }

    public Date getIssueDate() {
        return issueDate;
    }

    public void setIssueDate(Date value) {
        this.issueDate = value;
    }

    public JSonClient getClient() {
        return client;
    }

    public void setClient(JSonClient value) {
        this.client = value;
    }

    public List<JSonInvoiceLine> getLines() {
        if (lines == null) {
            lines = new ArrayList<JSonInvoiceLine>();
        }
        return this.lines;
    }

    public void setLines(List<JSonInvoiceLine> lines) {
        this.lines = lines;
    }
}
